.markmeditor ::before, .markmeditor ::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.markmeditor * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.markmeditor {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    border: 1px solid #cccccc;
}

.markmeditor .markmeditor-codemirror-wrapper {
    width: 50%;
    overflow: hidden;
    background-color: #FFFFFF;
    margin-top: 30px;
    padding: 0;
    position: absolute;
    top: 0;
    bottom: 0;
}

.markmeditor .markmeditor-codemirror-wrapper .CodeMirror {
    font-family: Monaco, Consolas, "Courier New", Georgia, monospace;
    position: absolute;
    width: 100%;
    height: 100%;
}

.markmeditor .CodeMirror pre.CodeMirror-placeholder { color: #999; }

.markmeditor .editor-line {
    position: absolute;
    height: 100%;
    left: 50%;
    top: 0;
    border-left: 1px solid #ccc;
    z-index: 100;
}

.markme-editor-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1049;
    margin-top: 0;
    border: none;
    width: 100%;
    height: 100%;
    background-color: #F6F6F6;
}

.markmeditor .markmemodal li.active {
    background-color: grey;
}

.markmeditor .markmeditor-toolbar {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 101;
    border-bottom: 1px solid #cccccc;
    background-color: #fff;
}

.markmeditor .markmeditor-toolbar .tb-mode .pull-right {
    float: right;
}

.markmeditor .markmeditor-previewer {
    position: absolute;
    overflow: auto;
    padding: 0 10px;
    margin-top: 30px;
    width: 50%;
    left: 50%;
    background: #ffe;
    top: 0;
    bottom: 0;
    outline: none;
}

/* image */
.markmeditor .markmeditor-previewer img {
    max-width: 30%;
}

/* code */
.markmeditor .markmeditor-previewer pre {
    overflow: auto;
    display: block;
    padding: 0.4em;
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.42857143;
    word-wrap: normal;
    word-break: normal;
    color: #cfcfcf;
    background-color: #f1f1f1;
}

.markmeditor .markmeditor-previewer pre code {
    font-family: Consolas, Monaco, Georgia, monospace;
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    background: #f1f1f1;
    color: #333;
}

/* p */
.markmeditor .markmeditor-previewer p {
    margin-top: 0.5rem;
    margin-bottom: .5rem;
}

/* blockquote */
.markmeditor .markmeditor-previewer blockquote {
    background-color: #D9EDF7;
    padding: 1px 10px;
    border-left: 5px solid #009688;
    margin-left: 0;
}

/* table */
.markmeditor .markmeditor-previewer table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border-spacing: 0;
    border-color: grey;
}

.markmeditor .markmeditor-previewer th {
    background: #F3F3F3;
}

.markmeditor .markmeditor-previewer th, .markmeditor .markmeditor-previewer td {
    border: 1px solid #E6E6E6;
    padding: 5px 8px;
    word-break: normal;
}

/* mark */
.markmeditor .markmeditor-previewer mark {
    background-color: yellow;
}

/* alert */
.markmeditor .markmeditor-previewer .primary {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.markmeditor .markmeditor-previewer .secondary {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.markmeditor .markmeditor-previewer .success {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.markmeditor .markmeditor-previewer .danger {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.markmeditor .markmeditor-previewer .warning {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.markmeditor .markmeditor-previewer .info {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.markmeditor .markmeditor-previewer .light {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.markmeditor .markmeditor-previewer .dark {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

/* download */
.markmeditor .markmeditor-previewer .markmeditor-download {
    text-align: center;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.markmeditor .markmeditor-previewer .markmeditor-download p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* menu */
.markmeditor .tb-menu,
.markmeditor .tb-mode {
    list-style: none;
    margin: 0;
    padding: 0 5px;
    background-color: #FFFFFF;
}

.markmeditor .tb-menu li,
.markmeditor .tb-mode li {
    float: left;
    margin: 0 2px;
    vertical-align: text-top;
}

.markmeditor .tb-menu button,
.markmeditor .tb-mode button {
    cursor: pointer;
    display: block;
    border: 5px solid #FFFFFF;
    width: 5px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 380px 60px;
    background-image: url(../img/oceditor.png);
    background-color: transparent;
    text-indent: 110%;
    white-space: nowrap;
    overflow: hidden;
    text-transform: capitalize;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    outline: none;
}

.markmeditor .tb-menu button:hover, .markmeditor .tb-mode button:hover {
    border-color: #F6F6F6;
    background-color: #F6F6F6;
    text-decoration: none;
}

.markmeditor .tb-menu button.muted, .markmeditor .tb-mode button.muted {
    background-position-y: -20px;
    background-color: #F6F6F6;
    border-color: #F6F6F6;
    cursor: default;
}

.markmeditor .tb-menu-bold {
    background-position: 0px 0px;
}
.markmeditor .tb-menu-bold:hover {
    background-position: 0px -40px;
}

.markmeditor .tb-menu-italic {
    background-position: -20px 0px;
}
.markmeditor .tb-menu-italic:hover {
    background-position: -20px -40px;
}

.markmeditor .tb-menu-createLink {
    background-position: -40px 0px;
}
.markmeditor .tb-menu-createLink:hover {
    background-position: -40px -40px;
}

.markmeditor .tb-menu-blockquote {
    background-position: -60px 0px;
}
.markmeditor .tb-menu-blockquote:hover {
    background-position: -60px -40px;
}

.markmeditor .tb-menu-preCode {
    background-position: -80px 0px;
}
.markmeditor .tb-menu-preCode:hover {
    background-position: -80px -40px;
}

.markmeditor .tb-menu-insertImage {
    background-position: -100px 0px;
}
.markmeditor .tb-menu-insertImage:hover {
    background-position: -100px -40px;
}

.markmeditor .tb-menu-insertOrderedList {
    background-position: -120px 0px;
}
.markmeditor .tb-menu-insertOrderedList:hover {
    background-position: -120px -40px;
}

.markmeditor .tb-menu-insertUnorderedList {
    background-position: -140px 0px;
}
.markmeditor .tb-menu-insertUnorderedList:hover {
    background-position: -140px -40px;
}

.markmeditor .tb-menu-h2 {
    background-position: -160px 0px;
}
.markmeditor .tb-menu-h2:hover {
    background-position: -160px -40px;
}

.markmeditor .tb-menu-insertHorizontalRule {
    background-position: -180px 0px;
}
.markmeditor .tb-menu-insertHorizontalRule:hover {
    background-position: -180px -40px;
}

.markmeditor .tb-menu-undo {
    background-position: -200px -20px;
}
.markmeditor .tb-menu-undo:hover {
    background-position: -200px -20px;
}
.markmeditor .tb-menu-undo-enable {
    background-position: -200px 0px;
}
.markmeditor .tb-menu-undo-enable:hover {
    background-position: -200px -40px;
}

.markmeditor .tb-menu-redo {
     background-position: -220px -20px;
 }
.markmeditor .tb-menu-redo:hover {
    background-position: -220px -20px;
}
.markmeditor .tb-menu-redo-enable {
    background-position: -220px 0px;
}
.markmeditor .tb-menu-redo-enable:hover {
    background-position: -220px -40px;
}

.markmeditor .tb-menu-help {
    background-position: -300px 0px;
}
.markmeditor .tb-menu-help:hover {
    background-position: -300px -40px;
}


.markmeditor .tb-menu-preview {
    background-position: -360px 0px;
}
.markmeditor .tb-menu-preview:hover {
    background-position: -360px -40px;
}

.markmeditor .tb-menu-live {
    background-position: -340px 0px;
}
.markmeditor .tb-menu-live:hover {
    background-position: -340px -40px;
}

.markmeditor .tb-menu-edit {
    background-position: -320px 0px;
}
.markmeditor .tb-menu-edit:hover {
    background-position: -320px -40px;
}

.markmeditor .tb-menu-fullscreen {
    background-position: -240px 0px;
}
.markmeditor .tb-menu-fullscreen:hover {
    background-position: -240px -40px;
}

.markmeditor .tb-menu-fullscreen-ing {
    background-position: -260px 0px;
}
.markmeditor .tb-menu-fullscreen-ing:hover {
    background-position: -260px -40px;
}

/* resize */
.editor__resize {
    position: absolute;
    width: 120px;
    height: 4px;
    left: 50%;
    margin-left: -60px;
    margin-top: 4px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    cursor: row-resize;
    text-indent: 110%;
    white-space: nowrap;
    overflow: hidden;
    text-transform: capitalize;
}

/* file */
.widget-upload.form-group {
    position: relative;
}

.widget-upload .widget-upload__file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}